package com.bd.scm.domain.models.system;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 系统设置-成本中心表
 * </p>
 *
 * @author Mason
 * @since 2020-08-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bd_sys_costcenter")
public class BdSysCostcenter extends Model<BdSysCostcenter> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Integer id;
    /**
     * 编号
     */
    private String bh;
    /**
     * 成本中心名称
     */

    @TableField("costcenter_name")
    private String costcenterName;
    /**
     * 部门加班阈值
     */
    @TableField("dept_ot_max")
    private Integer deptOtMax;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
